<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="200px" class="aside-container">
        <div class="title">个人中心</div>
        <div>
          <ul class="menu-list">
            <li><RouterLink to="/user/info">个人信息</RouterLink></li>
            <li><RouterLink to="/user/orderList">我的订单</RouterLink></li>
            <li><RouterLink to="/user/collect">我的收藏</RouterLink></li>
            <li><RouterLink to="/user/addr">地址管理</RouterLink></li>
            <li><RouterLink to="/user/password">设置密码</RouterLink></li>
            <li><RouterLink to="/user/recharge">账户充值</RouterLink></li>
          </ul>
        </div>
      </el-aside>
      <el-main class="main-container">
        <RouterView/>
      </el-main>
    </el-container>
  </div>
</template>

<script setup>

import {LocationInformation} from "@element-plus/icons-vue";
</script>
<style scoped>
.aside-container {
  background-color: #ff8c00; /* 比 #ff6800 略浅的橙色，以增加层次感 */
  padding: 20px;
  color: white; /* 确保侧边栏文字可读 */
}

.title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.menu-list li {
  margin: 10px 0;
}

.menu-list li a {
  color: white; /* 确保链接文字可读 */
  text-decoration: none; /* 去掉下划线 */
}

.main-container {
  background-color: #ffffff; /* 白色背景以提高可读性 */
  padding: 20px; /* 可选：为主内容区域添加内边距 */
}
</style>